package arina.university.model;

import java.util.LinkedList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: user
 * Date: 15.11.13
 * Time: 13:55
 * To change this template use File | Settings | File Templates.
 */
public class Faculty {
    String name;
    List<Chair> chairs= new LinkedList<Chair>();

    public Faculty(String name){
        this.name=name;
    }
    public void addChair(Chair chair){
        this.chairs.add(chair);
    }
    public long getQuantity(){
        long q=0;
        for(Chair c: chairs) {
            q+=c.getQuantity();
        }
        return q;
    }

    public String getName(){
        return name;
    }

    public List<Chair> getChairs(){
        return chairs;
    }

}
